.class Lcom/burstly/lib/util/json/JacksonProcessor$CookieSerializer;
.super Lcom/burstly/jackson/map/JsonSerializer;
.source "JacksonProcessor.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/burstly/lib/util/json/JacksonProcessor;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0xa
    name = "CookieSerializer"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lcom/burstly/jackson/map/JsonSerializer",
        "<",
        "Lcom/burstly/lib/network/beans/cookie/CookieHolder;",
        ">;"
    }
.end annotation


# static fields
.field private static final NAME:Ljava/lang/String; = "name"

.field private static final VALUE:Ljava/lang/String; = "value"


# direct methods
.method private constructor <init>()V
    .locals 0

    .prologue
    .line 68
    invoke-direct {p0}, Lcom/burstly/jackson/map/JsonSerializer;-><init>()V

    return-void
.end method

.method synthetic constructor <init>(Lcom/burstly/lib/util/json/JacksonProcessor$1;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 68
    invoke-direct {p0}, Lcom/burstly/lib/util/json/JacksonProcessor$CookieSerializer;-><init>()V

    return-void
.end method


# virtual methods
.method public handledType()Ljava/lang/Class;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/lang/Class",
            "<",
            "Lcom/burstly/lib/network/beans/cookie/CookieHolder;",
            ">;"
        }
    .end annotation

    .prologue
    .line 91
    const-class v0, Lcom/burstly/lib/network/beans/cookie/CookieHolder;

    return-object v0
.end method

.method public serialize(Lcom/burstly/lib/network/beans/cookie/CookieHolder;Lcom/burstly/jackson/JsonGenerator;Lcom/burstly/jackson/map/SerializerProvider;)V
    .locals 2
    .parameter "cookie"
    .parameter "jgen"
    .parameter "sProvider"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 83
    invoke-virtual {p2}, Lcom/burstly/jackson/JsonGenerator;->writeStartObject()V

    .line 84
    const-string v0, "name"

    invoke-virtual {p1}, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->getName()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v0, v1}, Lcom/burstly/jackson/JsonGenerator;->writeStringField(Ljava/lang/String;Ljava/lang/String;)V

    .line 85
    const-string v0, "value"

    invoke-virtual {p1}, Lcom/burstly/lib/network/beans/cookie/CookieHolder;->getValue()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p2, v0, v1}, Lcom/burstly/jackson/JsonGenerator;->writeStringField(Ljava/lang/String;Ljava/lang/String;)V

    .line 86
    invoke-virtual {p2}, Lcom/burstly/jackson/JsonGenerator;->writeEndObject()V

    .line 87
    return-void
.end method

.method public bridge synthetic serialize(Ljava/lang/Object;Lcom/burstly/jackson/JsonGenerator;Lcom/burstly/jackson/map/SerializerProvider;)V
    .locals 0
    .parameter "x0"
    .parameter "x1"
    .parameter "x2"
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;,
            Lcom/burstly/jackson/JsonProcessingException;
        }
    .end annotation

    .prologue
    .line 68
    check-cast p1, Lcom/burstly/lib/network/beans/cookie/CookieHolder;

    .end local p1
    invoke-virtual {p0, p1, p2, p3}, Lcom/burstly/lib/util/json/JacksonProcessor$CookieSerializer;->serialize(Lcom/burstly/lib/network/beans/cookie/CookieHolder;Lcom/burstly/jackson/JsonGenerator;Lcom/burstly/jackson/map/SerializerProvider;)V

    return-void
.end method
